<{include file="../common/iframe_header.tpl"}>
<div class="pad_10" style="margin-top: 10px;">
    <div class="table-list">
        <table width="100%">
        <thead>
            <tr>
                    <th>文件名</th>
                    <th>上传时间</th>
                    <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <{foreach $list as $key => $val}>
            <tr onMouseOver="this.className = 'tr2'" onMouseOut="this.className = 'tr1'" class="tr1" id="attach_<{$val.nra_id}>">
                    <td><{$val.file_name}></td>
                    <td><{$val.create_time|date_format:"%Y-%m-%d"}></td>
                    <td><a href="<{$val.url}>" target="_blank">下载</a> | <a href="javascript:;" onclick="del(<{$val.nra_id}>);">删除</a></td>
            </tr>
            <{/foreach}>
        </tbody>
        </table>

        <div style="float:right;"><{$page}></div>
    </DIV>
</div>
<script type="text/javascript">
function del(nra_id){
    if (confirm('确认删除！')) {
        $.getJSON('/webadmin/report/DelAttach',{nra_id:nra_id},function(res){
            if (res.status==1) {
                $('#attach_'+nra_id).remove();
            }
            alert(res.note);
        });
    }
}
</script>
<{include file="../common/footer.tpl"}>